package lntu.r211.nw;

public abstract class FunctionDemo03 {
   abstract void shout();
    protected String name;

    public FunctionDemo03(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
@Override
class Cat extends FunctionDemo03{
    public Cat(String name) {
        super(name);
        System.out.println(+"在叫");
    }

}
@Override
class Dog extends FunctionDemo03{
    public Dog(String name) {
        super(name);
    }
}
